﻿using System;
using System.Collections.ObjectModel;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace Acme.BookStore2
{
    /// <summary>
    /// 车辆保养记录
    /// </summary>
    public class VehicleMaintenanceRecord : FullAuditedAggregateRoot<Guid>, IMultiTenant
    {
        /// <summary>
        /// 开始日期
        /// </summary>
        public virtual DateTime? StartDate { get; set; }
        /// <summary>
        /// 结束日期
        /// </summary>
        public virtual DateTime? EndDate { get; set; }
        /// <summary>
        /// 地点
        /// </summary>
        public virtual string Location { get; set; }
        /// <summary>
        /// 技师
        /// </summary>
        public virtual string Technician { get; set; }
        /// <summary>
        /// 项目
        /// </summary>
        public virtual string Detail { get; set; }
        /// <summary>
        /// 花费
        /// </summary>
        public virtual string Cost { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public virtual string Remark { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public virtual Collection<AttachFile> AttachFiles { get; set; }
        /// <summary>
        /// 车辆Id
        /// </summary>
        public virtual Guid VehicleId { get; } 
        public Guid? TenantId { get; }
        
        protected VehicleMaintenanceRecord()
        {
            
        }

        public VehicleMaintenanceRecord(Guid id, Guid vehicleId, Guid? tenantId) : base(id)
        {
            AttachFiles = new Collection<AttachFile>();
            TenantId = tenantId;
            VehicleId = vehicleId;
        }
    }
}